package com.zking.ssm.NH.service.impl;

import com.zking.ssm.NH.mapper.tHotelSellerEmployeeMapper;
import com.zking.ssm.NH.model.tHotelSellerEmployee;
import com.zking.ssm.NH.service.ItHotelSellerEmployeeService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author NH
 * @Date 2021/1/23/0023 22:22
 */

@Service
public class THotelSellerEmployeeServiceImpl implements ItHotelSellerEmployeeService {

    @Autowired
    private tHotelSellerEmployeeMapper hotelSellerEmployeeMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelSellerEmployeeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(tHotelSellerEmployee record) {
        return hotelSellerEmployeeMapper.insertSelective(record);
    }

    @Override
    public tHotelSellerEmployee selectByPrimaryKey(Long id) {
        tHotelSellerEmployee hotelSellerEmployee = hotelSellerEmployeeMapper.selectByPrimaryKey(id);
        return hotelSellerEmployee;
    }

    @Override
    public int updateByPrimaryKeySelective(tHotelSellerEmployee record) {
        return hotelSellerEmployeeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<tHotelSellerEmployee> listEmployee(tHotelSellerEmployee hotelSellerEmployee, PageBean pageBean) {
        List<tHotelSellerEmployee> hotelSellerEmployeeList = hotelSellerEmployeeMapper.listEmployee(hotelSellerEmployee);
        return hotelSellerEmployeeList;
    }
}
